#include "project_p.h"

ProjectPrivate* ProjectPrivate::m_self = NULL;

ProjectPrivate::ProjectPrivate()
    : is_modified(false)
{
    /// FIXME: one target at loading
    ProjectTarget target;
    project_targets.push_back( target );
}

ProjectPrivate::~ProjectPrivate()
{
    m_self = NULL;
}

ProjectPrivate* ProjectPrivate::self()
{
    if ( !m_self )
        m_self = new ProjectPrivate;
    return m_self;
}
